<template>
  <div class="flex items-center justify-between">
    <!-- 标题及当前状态 -->
    <div class="flex items-center">
      <div class="m-r-3">{{ title }}</div>
      <div class="currentStatus">{{ status }}</div>
    </div>
    <!-- 按钮组 -->
    <div>
      <slot></slot>
    </div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps({
  title: {
    type: String, // 标题
    default: '',
  },
  status: {
    type: String, // 标题
    default: '',
  },
})
</script>

<style scoped lang="scss">
.currentStatus {
  color: var(--info-color);
  font-size: var(--font-size-base);
}
</style>
